<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>变更审核统计</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href="<s:url value="/css/common.css"/>"/>
    <!-- 当前页面样式 END -->
    <script type="text/javascript" src="<c:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
    <script type="text/javascript">
    function   str2date(str){   
  	  var   d=null;   
  	  var   reg=/^(\d{4})(\d{2})(\d{2})$/  ;
  	  if(arr=str.match(reg))d=new   Date(Number(arr[1]),Number(arr[2])-1,Number(arr[3])) ; 
  	  return   d;   
  	  }
  	  
    function subForm() {
    	var beginTime = $("#minDate").val();
    	var endTime = $("#maxDate").val();
    	if (!endTime || !beginTime) {
    		alert("起始时间范围必须选择!");
    		return false;
    	}
    	var date1 = str2date(beginTime);
    	var date2 = str2date(endTime);
    	if(date1>date2){
    		alert("结束时间不能小于开始时间");
    		return false;
    	}
    	return true;
    } 

		function checkSubmit(){
			var  is=subForm();
			if(is){
			
			$("#queryWindControll").attr("action","<%=basePath%>/changeCheckCount/queryChangeCheck.ct");
			$("#queryWindControll").submit();
			}
		}
		
		function exportSubmit(){
			var  is=subForm();
			if(is){
			$("#queryWindControll").attr("action","<%=basePath%>/changeCheckCount/exportChangeCheck.ct");
			$("#queryWindControll").submit();
			}
	    }
	</script>
</head>
<body>
<s:form id="queryWindControll" action="" method="post" theme="simple">
<table class="tb">
    <tbody>
        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
        </tr>

        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h3">变更审核统计</div></td>
        </tr>

        <tr class="tb-line">
        	<td width="12%" style="min-width: 150px" align="right" class="tb-td">
                <div class="tb-h4">日期范围：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-mini"><s:textfield id="minDate"  name="searchCondition.minDate" 
                onfocus="WdatePicker({dateFmt:'yyyyMMdd',readOnly:true,wdate:true,errDealMode:0});" 
                /></label> -<label class="tb-input-mini"><s:textfield id="maxDate"  name="searchCondition.maxDate" 
                onfocus="WdatePicker({dateFmt:'yyyyMMdd',readOnly:true,wdate:true,errDealMode:0});" 
                /></label> <code class="asterisk">*</code>
             </td>
         </tr>
         
         
          

        <tr class="tb-line">
            <td class="tb-td line-submit" align="right" colspan="4">
                <label class="tb-input-submit">
                    <input type="button" value="查   询" onclick="return checkSubmit();"/>
                </label>
                <label class="tb-input-submit">
                    <s:if 
					 test="#request.ccList != null && #request.ccList.size>0">
					   		<input id="szPower" type="button"
							value="导 出" onclick="return exportSubmit();"/>
					   
					</s:if>
					<s:else>
					 	<input id="szPower" disabled="disabled" value="导  出" type="button" /> 
					</s:else>
                </label>
            </td>
        </tr>
        <s:if test="#request.ccList != null && #request.ccList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging"  align="left" colspan="4"> <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/changeCheckCount/queryChangeCheck.ct?currentPage=" />

						</td>
					</tr>
	</s:if>
    </tbody>
    
</table>

<div class="big-tb">
    <table class="tb" style="width: 100%;">
        <thead>
            <tr class="tb-line">
                <th class="tb-th" colspan="13">风控统计列表</th>
            </tr>
            <tr class="tb-line bg-gray">
                		<th class="tb-th">序号</th>
						<th class="tb-th">操作员账号</th>
						<th class="tb-th">操作员姓名</th>
						<th class="tb-th">领件总数</th>
						<th class="tb-th">审核通过数量</th>
						<th class="tb-th">审核不通过数量</th>
            </tr>
        </thead>
        <tbody>
			<s:iterator value="#request.ccList" status="stat" id="tft">
							<tr  class="tb-line"  >
							<td class="tb-td">
							<s:property value="#stat.count"/>
							</td>
					        <td class="tb-td">
							<s:property value="#tft.accountNo"/>
							</td>
							<td class="tb-td">
							<s:property value="#tft.realName"/>
							</td>
							<td class="tb-td">
							<s:property value="#tft.total"/>
							</td>
							<td class="tb-td">
							 <s:property value="#tft.passCount"/>
							</td>
							<td class="tb-td">
							<s:property value="#tft.noPassCount"/>
							</td>
						    </tr>
						</s:iterator>
        </tbody>
    </table>
</div>
</s:form>

<s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>